<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>后台登录-X-admin1.1</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="backstageCSSandJS/css/font.css">
    <link rel="stylesheet" href="backstageCSSandJS/css/xadmin.css">
    <link rel="stylesheet" href="https://cdn.bootcss.com/Swiper/3.4.2/css/swiper.min.css">
    <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script type="text/javascript" src="https://cdn.bootcss.com/Swiper/3.4.2/js/swiper.jquery.min.js"></script>
    <script src="backstageCSSandJS/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="backstageCSSandJS/js/xadmin.js"></script>

</head>
<body>
    <!-- 中部开始 -->
    <div class="wrapper">
        <!-- 右侧主体开始 -->
        <div class="page-content">
          <div class="content">
            <!-- 右侧内容框架，更改从这里开始 -->
            <form class="layui-form" action="ns.do?op1=userUpdate" method="post">
                <div class="layui-form-item">
                    <label for="L_username" class="layui-form-label">
                      员工编号
                    </label>
                    <div class="layui-input-inline">
                        <input type="text" id="L_username" name="userId" readonly="readonly" value="${param.userId}" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label for="L_repass" class="layui-form-label">
                        <span class="x-red">*</span>员工姓名
                    </label>
                    <div class="layui-input-inline">
                        <input type="text" id="L_repass" name="userName"   required="" lay-verify="required"
                        autocomplete="off" class="layui-input" value="${param.userName}">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label for="L_pass" class="layui-form-label">
                        <span class="x-red">*</span>员工性别
                    </label>
                    <div class="layui-input-inline">
                        <input type="text" id="L_pass" name="userSex" required="" lay-verify="required"
                        autocomplete="off" class="layui-input" value="${param.sex}" disabled="">
                    </div>
                   
                </div>
                <div class="layui-form-item">
                    <label for="L_repass" class="layui-form-label">
                        <span class="x-red">*</span>手机号码
                    </label>
                    <div class="layui-input-inline">
                        <input type="text" id="L_repass" name="phone" required="" lay-verify="required"
                        autocomplete="off" class="layui-input" value="${param.phone}">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label for="L_repass" class="layui-form-label">
                        <span class="x-red">*</span>邮箱
                    </label>
                    <div class="layui-input-inline">
                        <input type="text" id="L_repass" name="userEmail" required="" lay-verify="required"
                        autocomplete="off" class="layui-input" value="${param.userEmail}">
                    </div>
                </div>
                 <div class="layui-form-item">
                    <label for="L_repass" class="layui-form-label">
                        <span class="x-red">*</span>地址
                    </label>
                    <div class="layui-input-inline">
                        <input type="text" id="L_repass" name="address" required="" lay-verify="required"
                        autocomplete="off" class="layui-input" value="${param.address}">
                    </div>
                </div>
                 <div class="layui-form-item">
                    <label for="L_repass" class="layui-form-label">
                        <span class="x-red">*</span>身份证
                    </label>
                    <div class="layui-input-inline">
                        <input type="text" id="L_repass" name="cardId" required="" lay-verify="required"
                        autocomplete="off" class="layui-input" value="${param.cardId}">
                    </div>
                </div>
                 <div class="layui-form-item">
                     <label for="L_username" class="layui-form-label">
                        <span class="x-red">*</span>所属部门
                    </label>
               		  <div class="layui-input-inline layui-show-xs-block">
                                    <select name="userPost">

                                    	<c:if test="${sessionScope.post1!=null}">
                                    	<c:forEach var="post" items="${sessionScope.post1}">
                                        <option value="${post.deptName}">${post.deptName}</option>
                                        </c:forEach>
                                        </c:if>

                                    </select>
                                </div>	
                </div>
                <div class="layui-form-item">
                    <label for="L_repass" class="layui-form-label">
                    </label>
                    <button id="button01" class="layui-btn" lay-filter="save" lay-submit="">
                        保存
                    </button>
                </div>
            </form>
            <!-- 右侧内容框架，更改从这里结束 -->
          </div>
        </div>
        <!-- 右侧主体结束 -->
    </div>
    <!-- 中部结束 -->
	<script>
    var index = parent.layer.getFrameIndex(window.name); //获取当前窗体索引
    $('#button01').on('click', function(){
    	parent.location.reload();
        parent.layer.close(index); //执行关闭
    });
    </script>
</body>
</html>